package com.ktjy.ch15.mapper;

import com.ktjy.ch15.entity.MeetinGroom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeetinGroomMapper {
    public MeetinGroom getByName(@Param("name") String name);

    public List<MeetinGroom> getPage(@Param("meetinGroom") MeetinGroom meetinGroom,
                                  @Param("pageBegin") Integer pageBegin,
                                  @Param("pageSize") Integer pageSize);

    public Integer count(@Param("meetinGroom") MeetinGroom meetinGroom);

    public int insert(MeetinGroom meetinGroom);

    public MeetinGroom getById(@Param("id") Long id);

    public int update(MeetinGroom meetinGroom);

    public int delete(@Param("id") Long id);

}
